#ifndef _BSP_CUSTOM_DATA_H
#define _BSP_CUSTOM_DATA_H
#include "esp_partition.h"

/* BLE蓝牙名称是否写入到flash中 */
#define BLE_NAME_SET_FLAG 0X55


#define FLASH_BLE_DATA_START_ADD 0X00
#define FLASH_BLE_DATA_SIZE      0X1000
#define FLASH_BLE_DATA_TYPE      0x01
#define FLASH_BLE_DATA_SUBTYPE   0X06
#define FLASH_BLE_DATA_OFFSET    0x2d0000





typedef struct
{
   uint8_t flash_ble_name_flag;
   uint8_t flash_ble_name[18];
}flash_ble_name_t;





extern flash_ble_name_t flash_ble_name;



flash_ble_name_t *get_custom_data_flash_add(void);
void Ble_info_data_updata(uint8_t *ble_name_str);
void Ble_info_data_read(void);
void flash_ble_info_init(void);
#endif
